#ifndef SSICLOUD_CLASSIC_CASE_H
#define SSICLOUD_CLASSIC_CASE_H

#include "ssicloud_item_object.h"
#include "ssicloud_list_object.h"

namespace ssicloud {
/**
 * @brief The ClassicTypePage class
 *  案例分析-获取案例类型
 */
class ClassicTypePage : public ListObject<ClassicTypePageLNode> {
public:
    ClassicTypePage();

    //! 获取数据
    bool requestAll(const char *name = NULL, int pageNum = 1, int pageSize = 10);

    //! 调试信息
    void profile();

protected:
    //! 分析数据
    int genResult(NetBuffer *data);

private:
    // request
    SFString m_name;
    SFString m_pageNum;
    SFString m_pageSize;
};

/**
 * @brief The ClassicCasePage class
 *  案例分析-分页查询
 *  其中:content字段未html语言
 */
class ClassicCasePage : public  ListObject<ClassicCasePageLNode> {
public:
    ClassicCasePage();

    //! 获取数据
    bool requestAll(const char *title = NULL, int pageNum = 1, int pageSize = 10);

    //! 调试信息
    void profile();

protected:
    //! 分析数据
    int genResult(NetBuffer *data);

private:
    // request
    SFString m_title;
    SFString m_pageNum;
    SFString m_pageSize;

    // responed

};

}

#endif // SSICLOUD_CLASSIC_CASE_H
